using System;
using NUnit.Framework;
using DotNetXmlSwfChart;

namespace DotNetXmlSwfChart.UnitTest
{
    [TestFixture]
    public class LinkDataFixture
    {
        [Test]
        public void ToSourceXml()
        {
            string testXml =
                "<link_data url='http://google.com' " +
                           "target='_blank' " +
                           "/>";
            LinkData ld = new LinkData();
            ld.Url = "http://google.com";
            ld.Target = "_blank";
            Assert.AreEqual(testXml, ld.ToSourceXML());
        }
    }
}
